package com.snow.useviewdemo;

import android.os.Bundle;

import com.snow.useviewdemo.base.BaseActivity;
import com.snow.useviewdemo.base.BaseViewBindingActivity;
import com.snow.useviewdemo.databinding.ActivityTestBinding;
import com.snow.useviewdemo.util.LogUtils;

/**
 * Created by zhyt
 * Date: 2022/3/14
 * Describe:
 */
public class TestActivity extends BaseViewBindingActivity<ActivityTestBinding> {
    @Override
    protected ActivityTestBinding getViewBinding() {
        if (mBinding == null) {
            mBinding = ActivityTestBinding.inflate(getLayoutInflater());
        }
        return mBinding;
    }

    @Override
    protected void setViewData(Bundle savedInstanceState) {
        test00();
    }

    private void test00() {
        String zhangsan1 = getResources().getString(R.string.format_content, "zhangsan");
        String zhangsan2 = getResources().getString(R.string.format_content_2, "张三", "李四", "好朋友", 3, "上海");
        String zhangsan3 = getResources().getString(R.string.format_content_3, "张三", "李四", "好朋友", 4, "上海");
        String zhangsan4 = getResources().getString(R.string.format_content_4, "张三", "李四", "好朋友", 4, "上海");
//        mBinding.tvTest.setText(zhangsan1);
        LogUtils.d(zhangsan1);
        LogUtils.d(zhangsan2);
        LogUtils.d(zhangsan3);
        LogUtils.d(zhangsan4);
    }
}
